'; window.popUpWin.document.write(zhtm); window.popUpWin.document.close(); // Johnny Jackson 4/28/98 } //--> Inside AutoCAD 14 -- Appendix A -- Autocad 14 Bonus Pack Reference and Tutorials


Inside AutoCAD 14

Previous chapterNext chapterContents


- A -

Autocad 14 Bonus Pack Reference and Tutorials


by David M. Pitzer

AutoCAD Release 14 ships with a large group of tools collectively called the Bonus Pack. These tools consist of AutoLISP routines and executable AutoCAD Runtime Extension (ARX) functions. The Bonus Pack is located in the \Bonus\Cadtools folder. This folder is created during either a Full installation or a Custom installation that specifies the "bonus" option. The Bonus pull-down menu and the three Bonus toolbars referred to in the exercises in this appendix are defined in the files ac_bonus.mnu, which is loaded automatically if the folder \Bonus\Cadtools exists. If you decide to install the Bonus Pack after the initial AutoCAD R14 installation, ensure that the \Bonus\Cadtools folder is placed in AutoCAD's search path using the Environment tab of the Preferences dialog box. Loading the ac_bonus.mns file using AutoCAD's MENULOAD command will also cause the ac_bonus.lsp file to be loaded, enabling all of the bonus features.

Table A.1 lists all the tools contained within the Bonus Pack. The table lists the tool name, command-line name, and a brief description. The Help item on the Bonus pull-down menu provides more complete information for each bonus feature. Keep in mind that although these features have been tested and are free of problems, they are not officially supported by Autodesk. Make sure you have backup copies of any critical drawings before using these features.

The asterisk next to some of the bonus routines' names means there is a tutorial for this routine in the second half of this appendix.

Table A.1 Bonus Pack Reference Table

Bonus Routine Name Command Name Description

Layer Tools

CHANGE TO CURRENT LAYER LAYCUR Changes the layer of one or more selected objects to the current layer.
FREEZE OBJECT'S LAYER LAYFRZ Freezes layer of selected object(s).
*ISOLATE LAYER LAYISO Isolates the layer of one or more selected objects by turning all other layers off.
LOCK OBJECT'S LAYER LAYLCK Locks layer of selected object.
MATCH OBJECT'S LAYER LAYMCH Changes the layer(s) of selected object(s) to match layer of a selected object.
*TURN OBJECT'S LAYER OFF LAYOFF Turns off layer of selected object(s).
TURN ALL LAYERS ON LAYON Turns all layers on.
THAW ALL LAYERS LAYTHW Thaws all layers.
UNLOCK OBJECT'S LAYER LAYULK Unlocks layer of selected object.
*LAYER MANAGER LMAN Manages layer settings. Saves and restores layer configurations as "layer states" that can be modified, recalled, or renamed within an AutoCAD session. Layer states are saved within the drawing file but can also be exported to or imported from external <filename>.LAY files.

Text Tools

*ARC ALIGNED TEXT ARCTEXT Places a type of text entity along an arc.
EXPLODE ATTRIBUTES TO TEXT BURST Explodes blocks and then converts their attribute values to text entities.
CHANGE MULTIPLE TEXT ITEMS CHT A mini "text-property editor" to edit individual or global text attributes including height, justification, location, rotation, style, width factor, and text string.
FIND AND REPLACE TEXT FIND Finds and replaces text string values.1
GLOBAL ATTRIBUTE EDIT GATTE Globally changes attribute values for all duplicate blocks.
*FIT TEXT BETWEEN POINTS TEXTFIT Shrinks or stretches text by picking new start and end points.
*MASK OBJECTS BEHIND TEXT TEXTMASK Creates an invisible rectangular frame around text objects masking underlying objects.
EXPLODE TEXT TO LINES TXTEXP Explodes dtext entities into lines and arcs that then can be given thickness.

Draw Tools

*QUICK LEADER QLEADER Draws quick associative leaders with preset options.
ATTACH LEADER TO QLATTACH Attaches leader object to Mtext,
ANNOTATION OBJECT Tolerance, or Block Reference object.
DETACH LEADER FROM ANNOTATION OBJECT QLDETACHSET Detaches leader object from Mtext, Tolerance, or Block object.
GLOBAL ATTACH LEADER TO ANNOTATION OBJECTS QLATTACHSET Globally attaches leader object to Mtext, Tolerance, or Block objects.
*REVISION CLOUD REVCLOUD Creates a freehand polyline of sequential arcs to form a revision cloud.
WIPES OUT AREA OF DRAWING WIPEOUT Covers area defined by a polyline with current background color.

Modify Tools

EXTENDED CLIP CLIPIT Allows isolated clipping of an area of an external reference or block defined by a polyline, arc, or circle. Display of area outside the clipping area is removed.
EXTENDED CHANGE PROPERTIES EXCHPROP Changes similar properties of multiple objects.
EXTEND TO BLOCK EXTBLK Extends object ends using a block entity as boundary edge.
EXTENDED TRIM EXTRIM Trims all objects at a cutting edge specified by a selected polyline, line, circle, or arc.
*MOVE COPY ROTATE AND SCALE MOCORO Moves, copies, rotates, and scales object(s) with a single command.
MULTIPLE POLYLINE EDIT MPEDIT Performs a PEDIT on multiple polylines. Converts lines and arcs to polylines.
*MULTIPLE ENTITY STRETCH MSTRETCH Allows multiple crossing windows and/or crossing polygons to define objects for stretch operation.
TRIM TO BLOCK TRMBLK Trim object(s) using block as cutting edge.
EXTENDED EXPLODE XPLODE Provides control of all the properties of the component entities of a block(s) during explode. Entity selection methods can be individual or global for objects such as polylines, meshes, and blocks.

Miscellaneous Tools

READ COORDINATE DATA ASCPOINT Reads coordinate data from an ASCII file and generates either a continuous string of Lines, a Polyline, a 3D Polyline, Points, or copies of a specified object(s) at the coordinate points.
LIST ATTRIBUTES AND BLK_LST Loads four separate AutoLISP
ATTRIBUTE VALUES block commands:
BLKTBL
  Lists the block table showing the block definitions in the current drawing.
BLKLST  Lists the definition of user-selected block.
CATTL  Lists all the attributes, both constant and variable, of a user-selected block.
ATTLST  Lists all attributes in a block insertion, reading the constant ones from the block definition and the variable ones from the block.
LIST BLOCK ENTITIES BLOCK? Lists the entities in a block definition.
BONUS POPUP MENU BONUSPOPUP Loads and unloads the bonus pop-up menu utility. Once loaded, the utility enables you to select a pull-down for use as a pop-up menu. Alt+right-click selects the pull-down menu to be used; Ctrl+right-click pops up the menu.
CONVERT POLYLINES TO LWPOLYLINES CONVERTPLINES Concerts all pre-R14 polylines to lightweight polylines.2
COUNT BLOCKS COUNT Counts, itemizes, and displays the number of insertions of each block in the selected objects or the entire drawing.
BLOCK CROSS REFERENCE CROSSREF Searches block definitions for references to a specified layer, linetype, dimstyle, mlinestyle, or block and reports the names of all blocks that contain at least one reference to the specified object.
EXPORT DIMENSION STYLES DIMEX Exports named dimension styles and their settings to an external, <filename>.DIM file.
IMPORT DIMENSION STYLES DIMIM Imports named dimension styles from a <filename>.DIM file.
CREATE A TEMPORARY SELECTION SET GETSEL Creates a selection set of objects from a specified layer of a specified object type. All layers and/or all object types may be specified.
CONVERT JULIAN DATE JULIAN AutoCAD Julian/calendar date conversion utilities including calendar to Julian; calendar date and time to Julian; Julian date to calendar date; Julian date to AutoCAD calendar date/time; and Julian to day of week.
PACK 'N GO PACK Copies all files associated with a drawing (fonts, xrefs, and so on) to a specified location.
LISP PROGRAM CHECK PQCHECK Checks AutoLISP programs for mismatched parentheses and closing quotes in a group.
CREATE A SELECTION SET SSX Returns a selection set either exactly like a selected entity or, by adjusting the filter list, similar to it.
EDIT SYSTEM VARIABLES SYSVDLG Edits and saves system variables on the fly.
ATTACH XDATA XDATA Attaches extended entity data (xdata) to a selected entity.
LIST ENTITY DATA XDLIST Lists extended entity data (xdata) associated with an object.
ATTACH XDATA XDATA Attaches extended entity data (xdata) to a selected entity.
EDIT ACAD.PGP FILE ALIASEDIT Create, modify, and delete AutoCAD command aliases in ACAD.pgp file.
AUTOCAD BATCH PLOTTING UTILITY EBATCHP Plots multiple AutoCAD drawings on one or more devices automatically.
FONT CONVERSION UTILITY TTC2TFF Converts TTC (collection of TrueType fonts) files to TTF files.
TRANSLATE AN R13 DXF FILE TO R12 DXFIX13 An external, open, programmable application that generates ASCII or binary CXF files compatible with any release of AutoCAD.
LOAD ARX COMMANDS INTO DLINIT REGISTRY External application that enables a third-party developer or CAD administrator to load ARX commands into the registry during product installation or AutoCAD deployment.
DRAWING DATABASE TEXT FORMAT TRANSLATOR DBTRANS Translates textual data (encoded as 8-bit values) contained in a drawing between various formats.
COUNT COMMANDS, REITERATIONS AND ELAPSED TIME CMDCOUNT Counts commands and the number of times they were invoked in successive AutoCAD sessions.
CONVERT AUTOCAD CONFIGURATION FILES CFGCONV Converts CFG and INI files created for Release 13 into CFG and REG (registry) files readable by Release 14.
AHP TO HLP CONVERTER AHP2HLP Builds a Windows help file from an R13 AutoCAD Help file or a pre-R13 ASCII Help file.

1Does not apply to block attributes or multiline text entries.

2This command displays the message: ***Warning: This will convert all polylines to lightweight unconditionally. It removes all xdata on existing polylines and may cause third-party applications reliant on this data to fail.

Bonus Pack Tutorials

The following tutorials demonstrate a sampling of the tools found in the Bonus Pack. Not all of the options or features of these representative tools are necessarily included in these short exercises. Please refer to the Bonus Help facility found on the Bonus pull-down menu for the options available with each of these and the other Bonus Pack tools.

LAYER MANAGER

1. Open the drawing APP-1.DWG from this book's CD-ROM.

2. Start Layer Manager by: a) clicking on the Layer Manager tool from the Bonus Layer Tools toolbar, b) choosing the Bonus pull-down menu, then Layers/Layer Manager, or c) entering lman and pressing Enter at the Command: prompt.

3. The Layer Manager dialog box appears. If necessary, place the screen pointer in the title bar of the dialog box, click and drag the box to the position shown in figure A.1. Notice in the bottom-left corner that the current layer state is titled PLAN-ONLY.

Figure A.1 The Layer Manager dialog box.

4. With the Layer Manager dialog box still displayed, highlight the ALL-ON layer state, and then click on Restore.

Note that the ALL-ON layer state makes all layers visible.

5. Highlight the layer state DIMS-OFF and click on Restore. Note that the dimension layers are turned off.

6. Close the Layer Manager dialog box.

7. Using AutoCAD's Layer Control drop-down list on the Object Properties toolbar, turn off the layer BRTITLES.

8. Select Layer Manager to display the Layer Manager dialog box again. Create and save the current layer state by clicking on the Save button. Save the current layer state as NO-NOTES. Select and Restore the layer state NO-DIMS.

9. Restore the layer state NO-NOTES and note the layer BRTITLES is not displayed.

10. Delete the layer state NO-NOTES by clicking on the Delete button and clicking Yes in the Warning dialog box.

11. Finally, restore the layer state PLAN-ONLY and close the Layer Manager dialog box.


NOTE: Layer states may be saved to and restored from an external file as well.

12. Leave this drawing open if you plan to continue in the next exercise.

LAYER TOOLS

1. If necessary, open the drawing APP-1.DWG from this book's CD-ROM.

2. Select the Isolate Layer bonus feature by: a) clicking on the Isolate Object's Layer tool from the Bonus Layer Tools toolbar, b) choosing the Bonus pull-down menu, then Layers/ Layer Isolate, or c) entering layiso and pressing Enter at the Command: prompt.

3. At the Select object(s) on the layer(s) to be ISOLATED: prompt, pick the stairway at 1 in figure A.1 and then press Enter.

4. Note that all layers except the layer you picked are turned off. Undo the last operation by entering u and pressing Enter.

5. Select the Turn Object's Layer Off bonus feature by: a) clicking on the Turn Object's Layer Off tool from the Bonus Layer Tools toolbar, b) choosing the Bonus pull-down menu, then Layers/ Layer Off, or c) entering layoff and pressing Enter at the Command: prompt.

6. At the Options/Undo/<Pick an object on the layer to be turned OFF>: prompt, select the object at 2 in figure A.1. Note that the layer of the object picked, ARHEADER, is turned off.

7. With the prompt in the preceding step still active, enter u and press Enter to turn the ARHEADER layer back on. End the command by pressing Enter.

Leave this drawing open if you plan to continue to the next exercise.

REVISION CLOUD

1. If necessary, open the drawing APP-1.DWG from this book's CD-ROM. Restore the view REVISE.

2. Select the Revision Cloud bonus feature by: a) clicking on the Revision tool from the Bonus Standard toolbar, b) choosing the Bonus pull-down menu, then Draw/Revision Cloud, or c) entering revcloud and pressing Enter at the Command: prompt.

3. At the Arc length/<Pick cloud starting point>: prompt, pick a point near 1 in figure A.2 and guide the cursor in a counterclockwise direction to surround the objects following the path shown in figure A.2. AutoCAD draws the revision cloud along the path automatically as you outline the revision, and closes the cloud when you get within an arc length distance from start point.

4. Close this drawing without saving changes.

Figure A.2 Revision Cloud.

MULTIPLE ENTITY STRETCH

1. Open APP-2.DWG from the book's CD-ROM. Check that Layer1 is Thawed, On, and Current and that Layer2 is Frozen.

2. Start the Multiple Entity Stretch bonus feature by: a) clicking on the Multiple Entity Stretch tool on the Bonus Standard toolbar, or b) selecting the Bonus pull-down menu, then Modify/Multiple Entity Stretch, or c) entering mstretch and pressing Enter at the Command: prompt.

The following prompts appear:

Define crossing windows or crossing polygons...
CP(crossing polygon)/<Crossing First point>:

3. Form the two crossing boxes at the ends of boxes 1 and 3 as shown in figure A.3. Then press Enter.

Figure A.3 Multiple Stretch.

4. Respond to the following prompts as follows:

Remove objects/<Base point>: pick anywhere in the drawing area
Second base point: @0.75,0

The bonus routine stretches the two rectangles. Note in the previous step you could have entered the stretch distance using direct distance entry or you could have stretched the boxes dynamically with a click and drag motion.

Your drawing should now resemble figure A.4.

5. Leave this drawing open if you plan to continue with the next bonus tutorial, otherwise close the drawing without saving changes.

Figure A.4 Your image should resemble this figure at the end of the Multiple Entity Stretch exercise.

FIT TEXT BETWEEN POINTS AND ARC TEXT

1. Continue from the previous bonus tutorial or open drawing APP-2.DWG from the book's CD-ROM. Check that Layer1 is Thawed, On, and Current and that Layer2 is Frozen.

2. Start the Text Fit bonus feature by: a) clicking on the Text Fit icon on the Bonus Text Tools toolbar, b) choosing the Bonus pull-down menu, then Text/Text Fit, or c) entering textfit alnd pressing Enter at the Command: prompt.

The following prompt appears:

Select Text to stretch/shrink:

3. Pick the text in box 2. The following prompt appears:

Starting Point/<Pick new ending point>:

4. Position the cursor to the right and pick near 1 in figure A.5.

The bonus routine fits the text as shown in figure A.5.

5. Start the bonus Arctext feature by: a) clicking on the Text Along Arc icon on the Bonus Text Tools toolbar, b) choosing the Bonus pull-down menu, then Text/Arc Aligned Text, or c) entering arctext and pressing Enter at the Command: prompt.

The following prompt appears:

Select an Arc or an ArcAlignedText:

Figure A.5 Fit text between points.

6. Pick the arc. The ArcAlignedText Workshop dialog box appears as shown in figure A.6.

Figure A.6 The ArcAlignedText Workshop dialog box.

7. In the ArcAlignedText Workshop dialog box, enter the following values: Text height: 0.2, Offset from arc: 0.2. Leave all other values at their default settings. In the Text edit box, enter the following text: Fit this text along an arc. Click on the OK button.

The bonus routine fits the text along the arc as shown in figure A.7.

Figure A.7 Text along an arc.

8. If you want to continue in these tutorials, leave this drawing open. Otherwise, quit AutoCAD without saving changes.

QUICK LEADER

1. Continue from the previous bonus tutorial or open drawing APP-2.DWG from the book's CD-ROM. Check that Layer2 is Thawed, On, and Current and that Layer1 is Frozen. Your drawing should resemble figure A.8.

Figure A.8 Placing a Quick Leader.

2. Start the Quick Leader bonus feature by: a) clicking on the Quick Leader tool on the Bonus Standard toolbar, b) choosing the Bonus pull-down menu, then Draw/Leader Tools/Quick Leader, or c) entering qleader and pressing Enter at the Command: prompt.

The following prompt appears:

First Leader point or press Enter to set Options:

3. Ensure that ORTHO mode is off, then select the points 1 and 2 in figure A.8, and press Enter. At the Enter Leader text: prompt, type in the following two lines of text: Lorophytum (press Enter) pitzerii (press Enter), then press Enter again. AutoCAD places the leader and text as shown in figure A.9.

Figure A.9 Adding a Quick Leader.

4. If you plan to continue in these tutorials, leave this drawing open. Otherwise, quit AutoCAD without saving changes.

TEXT MASK

1. Continue from the previous bonus tutorial or open drawing APP-2.DWG from the book's CD-ROM. Check that Layer2 is Thawed, On, and Current and that Layer1 is Frozen. Your drawing should resemble figure A.9, resulting from the previous tutorial.

2. Start the Quick Leader bonus feature by: a) clicking on the Text Mask tool on the Bonus Text Tools toolbar, b) choosing the Bonus pull-down menu, then /Text/Text Mask, or c) entering textmask and pressing Enter at the Command: prompt.

When the following prompt appears, accept the default value of 0.35 by pressing Enter.

Enter offset factor relative to text height <0.35>:

3. At the Select Objects: prompt, pick the "Conference Table" text items and press Enter. AutoCAD creates the text mask as shown in figure A.10.

Figure A.10 Creating a text mask.

4. If you plan to continue in these tutorials, leave this drawing open. Otherwise, quit AutoCAD without saving changes.

MOVE COPY ROTATE

1. Continue from the previous bonus tutorial or open drawing APP-2.DWG from the book's CD-ROM. Check that Layer2 is Thawed, On, and Current and that Layer1 is Frozen. Your drawing should resemble figure A.10, resulting from the previous tutorial.

2. Start the Move Copy Rotate bonus feature by: a) clicking on the Move Copy Rotate tool on the Bonus Standard toolbar, b) choosing the Bonus pull-down menu, then Modify/Move Copy Rotate, or c) entering mocoro and pressing Enter at the Command: prompt.

3. At the Select Objects: prompt, pick the chair at 1 in figure A.10 and press Enter.

4. At the Base point: prompt, pick near 2. The following options prompt appears:

Move/Copy/Rotate/Scale/Base pt/Undo/<eXit>:

5. Choose the Move option by entering m and pressing Enter. At the Second point of displacement: prompt, move the cursor and pick near 3. The options prompt returns.

6. Choose the Rotate option by entering r and pressing Enter. At the Rotation angle: prompt, move the cursor to orient the chair as shown in figure A.11 and pick. The options prompt returns.

Figure A.11 Move Copy Rotate feature.

7. End the Move Copy Rotate feature by pressing Enter.

8. This completes the tutorials for the Bonus Package. Quit AutoCAD without saving changes to the drawing.

Icons on the three Bonus Toolbars are shown in figure A.12.

Figure A.12 Bonus Package toolbars.

Unlock Object's Layer


Previous chapterNext chapterContents

© Copyright, Macmillan Computer Publishing. All rights reserved.